<?php if ($this->get_data('nodes')):?>
<ul>
<?php foreach ($this->get_data('nodes') as $node):?>
<li>
    <a href="<?php echo tos_url($node['url_segment']);?>">
        <span class="img_wrap"><?php echo tos_img($node['thumbnail']);?></span>
        <span><?php echo $node['caption'];?></span>
    </a>
</li>
<?php endforeach;?>
</ul>
<?php endif;?>